/*
 * @Author: lp
 * @Date: 2022-01-12 14:17:36
 * @LastEditTime: 2022-04-12 15:26:11
 * @LastEditors: Please set LastEditors
 * @Description: svg插件 ,自动导入
 * @FilePath: \nien-vue3-admin\vite\plugins\svgIcon.ts
 */
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import path from 'path'

export default createSvgIconsPlugin({
  // 指定需要缓存的图标文件夹
  iconDirs: [path.resolve(process.cwd(), 'src/assets/icons')],
  // 指定symbolId格式
  symbolId: 'icon-[dir]-[name]',
})
